#ifndef _REBOTMGR_H
#define _REBOTMGR_H

#include "base/core/singleton.h"
#include "ProtoBuffer/AllProtocol.h"
#include "base/core/object_pool.h"
#include "Rebot.h"

class RebotMgr :public ManualSingleton < RebotMgr >
{
public:
	friend class ManualSingleton<RebotMgr>;
	//typedef std::unordered_map<CharIDType, CRebot*>	RebotObjMap;
public:
	RebotMgr();
	virtual ~RebotMgr();
	bool Init();
	void Update(uint64_t tick);
	bool UnInit();
	/*CRebot* GetRebot(CharIDType rebotCid);
	CRebot * CreateRebot(uint32_t rebotID);
	CRebot * CreateRebot(const CharacterMirrorData & stData);
	void RecyleRebot(CRebot* pRebot);*/
public:
	//RebotObjMap m_mapRebot;
};


#define g_MakeRebotMgr() (RebotMgr::Instance())
#define g_GetRebotMgr()  (RebotMgr::GetInstance())
#define g_DelRebotMgr()  (RebotMgr::Destroy())

#endif
